package pac.Labor;
import java.util.Observable;
/*
public class Observable {
    private boolean changed = false;
    private Vector<Observer> obs;
    public Observable(){};
    protected synchronized void setChanged(){};
    protected synchronized void clearChanged(){};
    public synchronized void addObserver(Observer o){};
    public synchronized void deleteObserver(Observer o) {};
    public synchronized void deleteObservers(){};
    public synchronized boolean hasChanged(){};
    public synchronized int countObservers(){};
    public void notifyObservers(){};
    public void notifyObservers(Object arg){};
}
*/  
public class LaborLeader extends Observable {
    String name;
    public LaborLeader(String name){
        this.name = name;
    }
    public void assignTask(LaborTask task)
    {
        setChanged();
        System.out.println("劳动委员" + name + "正派遣成员完成" + task.name);
        notifyObservers(task);
        System.out.println();
    }
}
